<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 运算符</title>
</head>
<body>
<h2>字符串运算符</h2>
<p>+ 运算符串联（相加）字符串。</p>

<p id="demo"></p>
<script>
  var text1="Bill";
  var text2="Gates";
  document.getElementById("demo").innerHTML=text1+""+text2;
</script>
</body>
</html>
<!--在用于字符串时，+ 运算符被称为级联运算符。-->